<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>CorkBoard It!</title>
</head>

<body>
<?php
	session_start();
	
	$host="localhost";
	$username="root";
	$password="";
	$database="cs4400_group17";

	mysql_connect($host,$username,$password);
	@mysql_select_db($database) or die( "Unable to select database");
	
	$username = $_SESSION['userName'];
	$useremail = $_SESSION['userEmail'];
	$corkboardTitle = $_GET['corkTitle'];
?>
<div id="masthead">
        <h1>CorkBoard<span style="color:red;">It</span></h1>
       	<p style="color:orange;margin-top:-10px"><b>Explore. Share. Inspire.</b></p>
</div>

<div id="container">

        <div id="page_content">
              <h2>Add Pushpin</h2> 
	      <h3>This Pushpin belongs to the Corkboard: <?php echo $corkboardTitle;?></h3>
              <form name = "input" action = "AddedPushpin.php" method = "post">
					<input type="hidden" name="title" value="<?php echo $corkboardTitle;?>"/>
                    URL: <input type="text" name="url" /><br />
                    Description: <input type="text" name="desc" /><br/>
                    Tags : <input type="text" name="tags" /><br/>
                    <input type="submit" value="Add" name="submitAdd"/>
              </form>
			  <form name = "input" action = "home.php" method = "post">
					<input type="submit" value="Back to Home" name="backtohome"/>
			  </form>
        </div>
        
</div>

<div id="footer">

</div>

</body>

</html>
